package ahut2020.exp12;

import java.math.BigInteger;

public class TestFermatTheory {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            BigInteger two = new BigInteger("2");
            BigInteger fi = two.pow(1 << i).add(BigInteger.ONE);//2^2^n+1
            System.out.print(fi + " ");
            System.out.println(fi.isProbablePrime(10));
        }
    }
}
